<?php 
include_once('connection/connection.php');
include('config.php');
$src=$_REQUEST['src'];
$habit=$_REQUEST['habit'];
$loc_id=$_REQUEST['loc_id'];
$frm=$_SESSION['form_id'];
$id1=$_SESSION['id1'];
$dis_name=$_SESSION['dis_name'];
$qr="select * from tbl_dtls_q3_loc where form_id='$frm'";
$res=mysql_query($qr);
$row1=mysql_fetch_array($res);
$qr2="select * from tbl_dtls_q3_last where loc_id='$loc_id' AND source_type='$src' AND habit_name='$habit'";
$res2=mysql_query($qr2);
$row=mysql_fetch_array($res2);
									
/*if(isset($_POST['submit']))
{ 
	header('Location: view_q3_4.php');
}*/	
?>
<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" name="questionnaire3_8" id="questionnaire3_8" onSubmit="window.close();">
	<table border="0" width="800" id="table1" cellspacing="0" cellpadding="0">
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td bgcolor="#EEEEEE" height="20"><font color="#000000">&nbsp;
			<span style="font-weight: 700">
			<font face="Arial" style="font-size: 8.5pt">Risk Assessment &amp; 
			Analysis (For Each hand pump) </font></span></font></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
			<table width="100%" height="419" border="0" cellpadding="0" id="table12">
				<tr>
					<td width="58" align="center" height="29" bgcolor="#F7E6B7">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					S. No.</font></td>
					<td width="518" height="29" bgcolor="#F7E6B7">
					<p align="center">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					Question</font></td>
					<td width="133" height="29" bgcolor="#F7E6B7">
					<p align="center">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					Yes / No</font></td>
				</tr>
				<tr>
					<td width="58" height="36" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">1</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
				  &#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2375;  &#2407;&#2406;  &#2350;&#2368;&#2335;&#2352;  &#2346;&#2352;&#2367;&#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2350;&#2375;&#2306; &#2325;&#2379;&#2312; &#2358;&#2380;&#2330;&#2366;&#2354;&#2351; &#2360;&#2381;&#2341;&#2367;&#2340;  &#2361;&#2376;?</font></td>
					
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q1'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q1'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="35" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">2</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2344;&#2367;&#2325;&#2335;&#2340;&#2350; &#2358;&#2380;&#2330;&#2366;&#2354;&#2351; &#2325;&#2366; &#2354;&#2375;&#2357;&#2354; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2360;&#2375; &#2314;&#2305;&#2330;&#2366; &#2361;&#2376;?(&#2327;&#2337;&#2381;&#2338;&#2366; &#2332;&#2367;&#2360;&#2350;&#2375; &#2327;&#2306;&#2342;&#2327;&#2368; &#2352;&#2367;&#2360;&#2340;&#2368; &#2361;&#2376;|)</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q2'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q2'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="49" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">3</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2346;&#2352;&#2367;&#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2350;&#2375;&#2306; &#2325;&#2379;&#2312; &#2342;&#2370;&#2360;&#2352;&#2366; &#2346;&#2381;&#2352;&#2342;&#2370;&#2359;&#2339; &#2325;&#2366; &#2360;&#2381;&#2352;&#2379;&#2340; &#2360;&#2381;&#2341;&#2367;&#2340; &#2361;&#2376;?(&#2332;&#2366;&#2344;&#2357;&#2352;&#2379;&#2306; &#2325;&#2375; &#2309;&#2357;&#2358;&#2375;&#2359; ,&#2325;&#2370;&#2396;&#2366;-&#2325;&#2396;&#2325;&#2335;,&#2360;&#2340;&#2361;&#2368; &#2327;&#2344;&#2381;&#2342;&#2366; &#2346;&#2366;&#2344;&#2368;)</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q3'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q3'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="51" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">4</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2375; &#2360;&#2368;&#2350;&#2375;&#2306;&#2335; &#2347;&#2352;&#2381;&#2358; &#2325;&#2375; &#2408; &#2350;&#2368;&#2335;&#2352; &#2346;&#2352;&#2367;&#2325;&#2381;&#2359;&#2375;&#2340;&#2381;&#2352; &#2350;&#2375;&#2306; &#2342;&#2370;&#2359;&#2367;&#2340; &#2332;&#2354; &#2325;&#2375; &#2311;&#2325;&#2335;&#2381;&#2336;&#2366; &#2361;&#2379;&#2344;&#2375; &#2361;&#2375;&#2340;&#2369; &#2327;&#2337;&#2381;&#2338;&#2366; &#2348;&#2344; &#2327;&#2351;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q4'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q4'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="50" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					5</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2368; &#2332;&#2354; &#2344;&#2367;&#2325;&#2366;&#2360;&#2368; &#2346;&#2381;&#2352;&#2339;&#2366;&#2354;&#2368; &#2327;&#2354;&#2340; &#2361;&#2376;?&#2325;&#2381;&#2351;&#2366; &#2351;&#2375; &#2335;&#2370;&#2335;&#2368; &#2361;&#2369;&#2312; &#2361;&#2376; ,&#2332;&#2354; &#2311;&#2325;&#2335;&#2381;&#2336;&#2366; &#2361;&#2379; &#2352;&#2361;&#2366; &#2361;&#2376; ?&#2325;&#2381;&#2351;&#2366; &#2311;&#2360;&#2325;&#2368; &#2360;&#2347;&#2366;&#2312; &#2325;&#2368; &#2310;&#2357;&#2358;&#2381;&#2351;&#2325;&#2340;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q5'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q5'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="37" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">6</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2366;  &#2360;&#2368;&#2350;&#2375;&#2306;&#2335; &#2347;&#2352;&#2381;&#2358; &#2407;  &#2350;&#2368;&#2335;&#2352; &#2360;&#2375; &#2325;&#2350; &#2330;&#2380;&#2337;&#2364;&#2366;&#2312; &#2325;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q6'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q6'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="38" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">7</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2375;  &#2330;&#2366;&#2352;&#2379;&#2306; &#2323;&#2352; &#2327;&#2344;&#2381;&#2342;&#2366; &#2346;&#2366;&#2344;&#2368; &#2311;&#2325;&#2335;&#2381;&#2336;&#2366; &#2361;&#2379; &#2352;&#2361;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q7'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q7'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" height="37" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">8</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2361;&#2376;&#2339;&#2381;&#2337;&#2346;&#2350;&#2381;&#2346; &#2325;&#2375;  &#2330;&#2366;&#2352;&#2379;&#2306; &#2323;&#2352; &#2344;&#2367;&#2352;&#2381;&#2350;&#2367;&#2340; &#2360;&#2368;&#2350;&#2375;&#2306;&#2335; &#2347;&#2352;&#2381;&#2358; &#2350;&#2375;&#2306; &#2342;&#2352;&#2366;&#2352;&#2375;&#2306; &#2310; &#2327;&#2312; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q8'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q8'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">9</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 9.5pt" color="#000000">
					&#2325;&#2381;&#2351;&#2366; &#2358;&#2369;&#2359;&#2381;&#2325; &#2350;&#2380;&#2360;&#2350; &#2325;&#2375; &#2342;&#2380;&#2352;&#2366;&#2344; &#2335;&#2351;&#2370;&#2348;&#2348;&#2375;&#2354; &#2325;&#2368; &#2350;&#2352;&#2350;&#2381;&#2350;&#2340; &#2325;&#2368; &#2310;&#2357;&#2358;&#2381;&#2351;&#2325;&#2340;&#2366; &#2361;&#2376;?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php if($row['risk_analysis_q9'] == 'YES'){ echo '&#2361;&#2366;&#2305;'; } else if($row['risk_analysis_q9'] == 'NO') { echo '&#2344;&#2361;&#2368;&#2306;'; }else { echo ''; }?></font></label>					</td>
				</tr>
				<!--<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">10</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Can waste water or rain water collect within 3 meters of the 
					well/ or borewell ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q10" id="risk_q10" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q10" id="risk_q10" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					11</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Can water, dirt or dust enter the well/borewell at the point 
					of attachment of handpump?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q11" id="risk_q11" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q11" id="risk_q11" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					12</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Is apron missing, damaged or less than 1.85 m in diameter ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q12" id="risk_q12" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q12" id="risk_q12" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					13</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;can waste water collect on apron ?</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q13" id="risk_q13" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q13" id="risk_q13" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					14</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Do people regularly bath, and wash closth or cooking/ eating 
					uthnsils at the hand &nbsp;pump/GLR</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q14" id="risk_q14" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q14" id="risk_q14" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					15</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Are villagers satisfied with PHED supply </font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q15" id="risk_q15" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q15" id="risk_q15" value="NO"> No</font></font>
					</td>
				</tr>
				<tr>
					<td width="58" align="center" bgcolor="#FDF9EE">
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					16</font></td>
					<td width="518" bgcolor="#FDF9EE">
					<font face="Verdana" style="font-size: 8.5pt" color="#000000">
					&nbsp;Are there pvt TWs/OWs used by villagers for drinking water 
					supply</font></td>
					<td width="133" bgcolor="#FDF9EE" align="center">
						<font style="font-size: 8.5pt" face="Arial" color="#000000">
						<input type="radio" name="risk_q16" id="risk_q16" value="YES">Yes
						<font style="font-size: 8.5pt">
				  		<input type="radio" name="risk_q16" id="risk_q16" value="NO">No</font></font>
					</td>
				</tr>-->
			</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;
			</td>
		</tr>
		<tr>
			<td bgcolor="#EEEEEE" height="20">
			<font face="Arial" color="#000000">
			<span style="font-size: 8.5pt; font-weight: 700">&nbsp;
			<span style="font-weight: 700; font-size:8.5pt">
			<font style="font-size: 8.5pt; font-weight:700"></font></span>Result 
			and Recommendations </span></font></td>
		</tr>
		<tr>
			<td>
			<table border="0" width="100%" id="table13" cellspacing="0" height="74">
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;<font style="font-size: 8.5pt" face="Verdana" color="#000000">&nbsp; 
					The following important points of risk were noted</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">
					<label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo"$row[imp_points_risk]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					N<font style="font-size: 8.5pt">ame of th</font>e Assessor
					</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[name_assessor]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;
					<font style="font-size: 8.5pt" face="Verdana" color="#000000">
					N<font style="font-size: 8.5pt">ame of th</font>e Key 
					Contact</font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[name_key_contact]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#F7E6B7">&nbsp;<font style="font-size: 8.5pt" face="Verdana" color="#000000"> 
					Contact Details&nbsp; </font></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE"><label id="habitation_name"><font style="font-size: 8.5pt; font-style: normal" face="Verdana"><?php echo "$row[contact_details]";?></font></label></td>
				</tr>
				<tr>
					<td bgcolor="#FDF9EE">&nbsp;</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<table border="0" width="100%" id="table11" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
			</td>
		</tr>
		<tr>
			<td>
			<p align="center">
			<input type="submit" value="Close" name="submit" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px" onClick="changeText();"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
	</form>
</div>
<!--</div>-->
</body>
</html>
